package ma.techit.pfe.agence.voyage.model;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.codehaus.jackson.annotate.JsonProperty;

@Entity
@Table(name="Service")

public abstract class Service extends BaseEntity{
	
	@Column(name = "nom")
	protected String nom;
	@Column(name = "urlWSDL")
	protected String urlWSDL;
	@Column(name = "description")
	protected String description;
	@ManyToOne(fetch = FetchType.EAGER, targetEntity = Fournisseur.class)
    protected Fournisseur fournisseur;

	@JsonProperty("Nom")
	public String getNom() {
		return nom;
	}
	public void setNom(String nom) {
		this.nom = nom;
	}
	@JsonProperty("UrlWSL")
	public String getUrlWSDL() {
		return urlWSDL;
	}
	public void setUrlWSDL(String urlWSDL) {
		this.urlWSDL = urlWSDL;
	}
	@JsonProperty("Description")
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Fournisseur getFournisseur() {
		return fournisseur;
	}
	public void setFournisseur(Fournisseur fournisseur) {
		this.fournisseur = fournisseur;
	}
	
	

}
